package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author SNA
 * @date 2024/2/6
 **/
@Mapper
public interface SysUserMapper {
    //2、登录时，根据用户名查询数据库表 sys_user表
    SysUser selectUserInfoByUserName(String userName);

    // 分页查询用户列表
    List<SysUser> findByPage(SysUserDto sysUserDto);

    // 新增用户
    void saveSysUser(SysUser sysUser);

    // 修改用户
    void updateSysUser(SysUser sysUser);

    // 删除用户
    void deleteById(Long id);
}
